export default {
    methods: {
                // 获取关联父子数据
                getParentNode(e) {
                    let parentVal = ''
                    this.fatherNodeArr.map((fuVal) => {
                        if (fuVal.vid === e.pid) {
                            parentVal = fuVal
                        }
                    })
                    return parentVal
                },
                // 获取同父级情况下的数据是否被全量冲销
                getIsAllTrade(parent) {
                    const childData = []
                    let total = 0
                    for (const item of this.tableData) {
                        if (parent?.vid === item.pid) {
                            childData.push(item)
                        }
                    }
                    for (const child of childData) {
                            total += (+child.currentInspectionNum - Math.abs(child.currentDeductionMoney))
                    }
                        return Math.ceil(total) === 0
                }
    }
}
